package com.hnas.ecard.dao;

import java.util.List;

import com.hnas.core.dao.BaseDao;
import com.hnas.core.dto.DTOPagedList;
import com.hnas.ecard.orm.ECardChannelInfo;
import com.hnas.ecard.service.dto.DTOECardChannelInfo;
import com.hnas.ecard.service.search.DTOECardChannelInfoSearch;

public interface ECardChannelInfoDao extends BaseDao<ECardChannelInfo>{

	/**
	 * 新增/修改
	 * @Title: saveOrUpdate  
	 * @Description:  
	 * @param dto
	 * @return
	 * @throws
	 */
	ECardChannelInfo saveOrUpdate(DTOECardChannelInfo dto);
	/**
	 * 分页查询
	 * @Title: page  
	 * @Description:  
	 * @param criteria
	 * @return
	 * @throws
	 */
	DTOPagedList<DTOECardChannelInfo> page(DTOECardChannelInfoSearch criteria);
	/**
	 * 根据id查询
	 * @Title: findById  
	 * @Description:  
	 * @param id
	 * @return
	 * @throws
	 */
	DTOECardChannelInfo findById(String id);
	/**
	 * 批量插入
	 * @Title: batchInsert  
	 * @Description:  
	 * @param list
	 * @return
	 * @throws
	 */
	int batchInsert(List<ECardChannelInfo> list) throws Exception;	
}
